package cn.itsource.zcn.searchmastermessage.service;

import cn.itsource.zcn.org.query.ShopQuery;
import cn.itsource.zcn.searchmastermessage.domain.SearchMasterMessage;
import cn.itsource.zcn.searchmastermessage.query.SearchMasterMessageQuery;
import cn.itsource.zcn.utils.AjaxResult;
import cn.itsource.zcn.utils.QueryResult;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * (SearchMasterMessage)表服务接口
 *
 * @author makejava
 * @since 2021-08-22 16:58:47
 */
public interface ISearchMasterMessageService {

    /**
     * 新增数据
     *
     * @param tSearchMasterMessage 实例对象
     */
    void save(SearchMasterMessage tSearchMasterMessage);

    /**
     * 修改数据
     *
     * @param tSearchMasterMessage 实例对象
     */
    void update(SearchMasterMessage tSearchMasterMessage);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     */
    void delete(Long id);

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SearchMasterMessage queryById(Long id);

    /**
     * 查询多条数据
     */
    List<SearchMasterMessage> queryAll();

    /**
     * 寻主信息发布
     * @param searchMasterMessage
     * @return
     */
    AjaxResult publish(SearchMasterMessage searchMasterMessage, HttpServletRequest request);

    void deleteBatch(Long[] ids);

    QueryResult queryPage(SearchMasterMessageQuery searchMasterMessageQuery, HttpServletRequest request);
}
